package javabasics.netty.login.protocol.request;

import javabasics.netty.login.protocol.Packet;
import lombok.Data;
import lombok.EqualsAndHashCode;

import static javabasics.netty.login.protocol.command.Command.LOGIN_REQUEST;

/**
 * 登录请求数据包
 *
 * @Author suxiaoxiao
 * @Date 2019/9/16 22:24
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class LoginRequestPacket extends Packet {

    private String userName;

    private String password;

    @Override
    public Byte getCommand() {
        return LOGIN_REQUEST;
    }

}
